package com.helen.springcloud.service.impl;/*
 *@Author: helen
 *@Date:   2021/9/9 20:51
 *@Description:
 */

import com.helen.springcloud.dao.PaymentDao;
import com.helen.springcloud.entities.Payment;
import com.helen.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.websocket.server.PathParam;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }
}
